package com.xiehua.task.actor.cmd;

import java.io.Serializable;

public class Cmd<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /** cmd **/
    public static final String CMD_TASK_READY = "task_ready";

    public static final String CMD_TASK_NOTIFY = "task_notify";

    public static final String CMD_TASK_NOTIFY_ASYNC_RESP = "task_notify_async_resp";

    public static final String CMD_SEND_EMAIL = "send_email";


    /** event **/
    public static final String EVT_TASK_DISPOSE = "task_dispose";


    private String  cmd;

    private final T t;

    public String getCmd() {
        return cmd;
    }

    public T getT() {
        return t;
    }

    public Cmd(String cmd, final T t) {
        this.cmd = cmd;
        this.t = t;
    }


}
